﻿$(function () {
    var newScript = document.createElement('script');    var bauiduShare = 'window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName(\'head\')[0] || body).appendChild(createElement(\'script\')).src = \'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=\' + ~(-new Date() / 36e5)];';    newScript.type = 'text/javascript';    newScript.innerHTML = bauiduShare;    $("body").append(newScript);
})

$(function () {
    $(document).on("click", ".detailback11", function () {
        var curpageHref = window.location.host;
        var prevpageHref = document.referrer;
        var windowHref = window.location.href.replace(/(.*\/)\w*(\.html)/g, "$1");
        if (prevpageHref.indexOf(curpageHref) > 0) {
            $(this).attr("href", "javascript:history.back();");
        } else {
            window.location.href = windowHref;
            return false;
        };
    });
})